package com.yycx.module.bus.provider.handler.sbreturn;

import com.yycx.common.base.entity.EntityMap;
import com.yycx.common.mybatis.interceptor.GetInterceptor;
import com.yycx.common.mybatis.query.CriteriaQuery;
import com.yycx.module.bus.client.entity.BusPayment;
import com.yycx.module.bus.client.entity.BusSupplier;
import com.yycx.module.system.client.entity.SysBank;
import org.springframework.stereotype.Component;

/**
 * 退垫付款详情扩展
 *
 * @author zyf
 */
@Component("sbReturnPaymentGetHandler")
public class SbReturnPaymentGetHandler implements GetInterceptor {



    @Override
    public void prepare(CriteriaQuery cq, EntityMap entityMap) {
        cq.select(BusPayment.class, "*");
        cq.addSelect(SysBank.class, "bankName", "bankNo");
        cq.addSelect(BusSupplier.class, "supplierName");
        cq.createJoin(SysBank.class);
        cq.createJoin(BusSupplier.class);
    }

}
